<template>
  <TableSlot :cols="table_cols" :data="table_data"></TableSlot>

  <FormSlot ref="refFormSlot2" enter_submit inline style="height: 2000px">
    <FormSlotItem label="的看法了解了对方" name="var1" _type_="file_img" tip="卢卡斯的积分看到老d地方撒旦反抗类毒素解放螺丝扣就立刻就立刻师就离开家" br></FormSlotItem>
    <FormSlotItem label="的看法了对方" name="var2" _type_="text_one" :validate="['integer']"></FormSlotItem>
    <FormSlotItem label="的看了对方" name="var3" _type_="radio" :_props_="{config:'默认|,选项一|1,选项二|2'}" />
    <FormSlotItem label="的了对方" name="var4" _type_="checkbox" :_props_="{config:{aa:'默认',b:'选项一',c:'选项二'}}" ></FormSlotItem>
    <FormSlotItem label="的看法了解了方" name="var5" _type_="text_one" tip="的空间看了"></FormSlotItem>

  </FormSlot>


</template>
<script setup lang="ts">
// @ts-nocheck
import TableSlot from "@/components/slot/TableSlot.vue";
import {computed, ref, useTemplateRef} from "vue";
import FormSlot from "@/components/slot/FormSlot.vue";
import FormSlotItem from "@/components/slot/FormSlotItem.vue";


const table_cols = [
    {}
]


const table_data = ref([])
const refFormSlot2 = useTemplateRef('refFormSlot2');

setTimeout(()=>{
  refFormSlot2.value.init({
    var1:'https://picsum.photos/200/300',
    var3: '',
    var5: '22',
  })

  refFormSlot2.value?.set_error_map({
    var1: '的烦烦烦烦烦烦'
  })
},2000)

const post_data = ref({
  var2: '123',
})

</script>

<style scoped>

</style>